package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.hunt.HuntBox;
import com.yanqu.road.entity.hunt.UserHunt;
import com.yanqu.road.entity.message.WorldMessage;
import com.yanqu.road.entity.hunt.UserHuntPatronsData;

import java.util.List;
import java.util.Map;

public class UserHuntBussiness {

    public static UserHunt getUserHunt(long userId) {
        return DaoHelper.getUserHuntDaoImpl().getUserHunt(userId);
    }

    public static boolean addUserHunt(UserHunt userHunt) {
        return DaoHelper.getUserHuntDaoImpl().add(userHunt);
    }

    public static boolean updateUserHunt(UserHunt userHunt) {
        return DaoHelper.getUserHuntDaoImpl().update(userHunt);
    }

    public static Map<String, HuntBox> getHuntBoxMap(long startTime){
        return DaoHelper.getHuntBoxDaoImpl().getHuntBoxMap(startTime);
    }

    public static boolean addHuntBox(HuntBox huntBox) {
        return DaoHelper.getHuntBoxDaoImpl().add(huntBox);
    }

    public static boolean updateHuntBox(HuntBox huntBox) {
        return DaoHelper.getHuntBoxDaoImpl().update(huntBox);
    }

    public static Map<Integer, UserHuntPatronsData> getUserHuntPatronsDataMap(long userId){
        return DaoHelper.getUserHuntPatronsDaoImpl().getUserHuntPatronsDataMap(userId);
    }

    public static boolean addUserHuntPatronsData(UserHuntPatronsData userHuntPatronsData) {
        return DaoHelper.getUserHuntPatronsDaoImpl().add(userHuntPatronsData);
    }

    public static boolean updateUserHuntPatronsData(UserHuntPatronsData userHuntPatronsData) {
        return DaoHelper.getUserHuntPatronsDaoImpl().update(userHuntPatronsData);
    }

    public static List<WorldMessage> getHuntMessageList(long selectTime) {
        return DaoHelper.getHuntMessageDaoImpl().getHuntMessageList(selectTime);
    }

    public static boolean addHuntMessage(WorldMessage huntMessage) {
        return DaoHelper.getHuntMessageDaoImpl().add(huntMessage);
    }

    public static boolean deleteHuntMessage(long deleteTime) {
        return DaoHelper.getHuntMessageDaoImpl().deleteHuntMessage(deleteTime);
    }
}
